Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz commented May 15, 2025

This commit reorganizes the contents of the following proto files:

  • communication_components.proto
  • electrical_components.proto
  • sensors.proto

The reorganization includes:

  • Moving the enums to the top of the file for better visibility and organization.
  • Sequencing the messages in an arbitrary logical order, ensuring that related messages are grouped together.

This PR does not change the protobuf messages themselves in any way.

This commit reorganizes the contents of the following proto files:
- `communication_components.proto`
- `electrical_components.proto`
- `sensors.proto`

The reorganization includes:
- Moving the enums to the top of the file for better visibility and
  organization.
- Sequencing the messages in an arbitrary logical order, ensuring that
  related messages are grouped together.

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this May 15, 2025
Copilot AI review requested due to automatic review settings May 15, 2025 14:10
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner May 15, 2025 14:11
@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.7.0 milestone May 15, 2025
@github-actions github-actions bot added the part:protobuf Affects the protocol buffer definition files label May 15, 2025
@tiyash-basu-frequenz tiyash-basu-frequenz added cmd:skip-release-notes It is not necessary to update release notes for this PR and removed part:protobuf Affects the protocol buffer definition files labels May 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes proto files to improve clarity and maintainability by moving enums to the top and reordering related messages.

  • Enums are now positioned before message definitions for better visibility.
  • Duplicate definitions have been removed and messages reorganized to group related data together.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto Reordered enums and messages; consolidated SensorData definition and related enums for consistency.
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto Reordered messages and shifted MetricConfigBounds, ElectricalComponent, and related types to a consistent order.
proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto Reorganized enum and message definitions; updated comments to clarify snapshot semantics and component categorization.

@github-actions github-actions bot added the part:protobuf Affects the protocol buffer definition files label May 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reorganizes proto files by moving enum definitions to the top and sequencing related message types for clarity without changing any message schemas.

  • Relocated enum declarations ahead of dependent messages in all three files.
  • Grouped related messages (e.g., metadata, component, data snapshots) together for logical cohesion.
  • Removed duplicate definitions to maintain a single source of truth per type.

Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look to the diff as it is very hard to read, so I assume no code was changed, only things were moved around. I looked at the resulting files and LGTM.

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue May 15, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 1a3e0d4 May 15, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the reordering branch May 15, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:protobuf Affects the protocol buffer definition files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants